package com.separate.fruit.entity;

import java.io.Serializable;
import java.util.List;

public class Order implements Serializable {
    /**
     * 订单的id
     */
    private Integer orderId;

    /**
     * 订单属于那个用户
     */
    private List<Users> usersList;

    /**
     * 订单中包含商品
     */
    private List<Goods> goodsList;

    /**
     * 订单数量
     */
    private Integer orderCount;

    /**
     * 订单金额
     */
    private Double orderPrice;

    /**
     * 地址
     */
    private String orderAddress;

    /**
     * 购物车属于某个用户
     */
    private Integer userId;

    /**
     * 商品Id方便找到商品
     */
    private Integer goodsId;

    private static final long serialVersionUID = 1L;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public List<Users> getUsersList() {
        return usersList;
    }

    public void setUsersList(List<Users> usersList) {
        this.usersList = usersList;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }
}
